package org.nanotek.lucene.index;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.core.KeywordAnalyzer;
import org.apache.lucene.analysis.core.SimpleAnalyzer;
import org.apache.lucene.analysis.core.StopAnalyzer;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;

public enum AnalyzerType {
	
	STANDARD 	(StandardAnalyzer.class), 
	STOPWORD    (StopAnalyzer.class),
	WHITESPACE  (WhitespaceAnalyzer.class),
	SIMPLE      (SimpleAnalyzer.class),
	KEYWORD		(KeywordAnalyzer.class);
	
	private Class<? extends Analyzer> clazz; 
	
	private AnalyzerType(Class<? extends Analyzer> clazz) 
	{ 
		this.clazz = clazz; 
	}
	
	public Class<? extends Analyzer> getClazz()
	{ 
		return this.clazz;
	}
	
}
